<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>报修登记管理</title>
	<meta name="decorator" content="default"/>
	<link type="text/css" rel="stylesheet" href="${ctxStatic}/css/dmsRegistrationForm.css" />
	<script type="text/javascript" src="${ctxStatic}/js/dmsRegistrationForm.js"></script>
	<script type="text/javascript" src="${ctxStatic}/layer/layer.js"></script>
</head>
<body>
 	<ul class="nav nav-tabs">
		<%-- <li><a href="${ctx}/registration/dmsRegistration/">报修登记列表</a></li> --%>
		<li class="active"><a href="${ctx}/registration/dmsRegistration/form?id=${dmsRegistration.id}">报修登记<shiro:hasPermission name="registration:dmsRegistration:edit">${not empty dmsRegistration.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="registration:dmsRegistration:edit">查看</shiro:lacksPermission></a></li>
	</ul><br/> 
	
	<div class="head_tip">报修登记添加</div><br><br>
		
	<form:form id="inputForm" modelAttribute="dmsRegistration" action="${ctx}/registration/dmsRegistration/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>		
		<div class="control-group">
			<label class="control-label">报修人：</label>
			<div class="controls">
				<form:input path="studentRepairName" htmlEscape="false" maxlength="64" class="input-xlarge required w" id="studentRepairNameId" pattern="^[\u4e00-\u9fa5]*$"/>
				<span class="help-inline"><font color="red" id="msgInfo1">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">宿舍号：</label>
			<div class="controls">
				<form:input path="dormitoryNumber" htmlEscape="false" maxlength="64" class="input-xlarge w required" id="dormitoryNumberId" pattern="^[A-Z][0-9]{3}$"/>
				<span class="help-inline"><font color="red" id="msgInfo2">*</font> </span>
				<span class="help-inline"><font>（楼号+宿舍编号（如：A405））</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">修理人：</label>
			<div class="controls">
				<form:input path="repairName" htmlEscape="false" maxlength="64" class="input-xlarge w required" id="repairNameId" pattern="^[\u4e00-\u9fa5]*$"/>
				<span class="help-inline"><font color="red" id="msgInfo3">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">报修日期：</label>
			<div class="controls">
				<input name="repairDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate m required"
					value="<fmt:formatDate value="${dmsRegistration.repairDate}" pattern="yyyy-MM-dd"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
					<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">报修物品：</label>
			<div class="controls">
				<form:textarea path="repairThings" htmlEscape="false" rows="3" maxlength="255" class="input-xxlarge l"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">报修结果：</label>
			<div class="controls">
				<form:select path="repairResult" class="input-medium w">
					<form:option value="" label=""/>
					<form:option value="未修好" label="未修好"/>
					<form:option value="已修好" label="已修好"/>
				</form:select>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">备注：</label>
			<div class="controls">
				<form:textarea path="remarks" htmlEscape="false" rows="4" maxlength="255" class="input-xxlarge l"/>
			</div>
		</div>
		<div class="form-actions form_b">
			<shiro:hasPermission name="registration:dmsRegistration:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
		</div>
	</form:form>
</body>
</html>